package com.toubutu.audio.mapper;

import com.toubutu.audio.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.toubutu.audio.vo.SeqVideoItem;
import com.toubutu.audio.vo.VideoListItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 戒躁
 * @since 2024-01-08
 */
@Mapper
public interface VideoMapper extends BaseMapper<Video> {
    List<VideoListItemVo> queryRangeVideo(@Param("size") Integer size);

    List<SeqVideoItem> getVideoSeqList(@Param("videoId") Integer videoId);

    void updateVideoSource(@Param("videoCode") String videoCode,@Param("fileUrl") String fileUrl);
}
